package sw.service;

import java.util.List;
import java.util.Map;

import org.apache.poi.ss.usermodel.Workbook;

import sw.model.MAsset;

/**
 * 资产威胁列表
 * @author LR
 *
 */
public interface IThreatService {
	/**
	 * 通过项目Id查找所有的威胁
	 * @param projectId
	 * @return
	 */
	public Map<String, List<MAsset>> showAllThreads(Integer projectId);
	
	/**
	 * 导出威胁基本信息
	 * @param projectId
	 * @return
	 * @throws Exception
	 */
	public Workbook exprotImpAsset(Integer projectId) throws Exception;

	/**
	 * 
	 * @param filePath
	 * @param projectId
	 * @throws Exception 
	 */
	public void importExcel(String filePath, Integer projectId) throws Exception;

}
